package com.atguigu.educms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ct_start
 * @create 2021 -08 -18
 **/
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})  //定义包的扫描规则,可以扫描外部的包,只要名字在com.atguigu下面的包
@MapperScan("com.atguigu.educms.mapper")  // 加上mapper 扫描.不然mybatis-plus 启动会报错也可以
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class,args);
    }
}
